#include <crtdbg.h>
#include <iostream>

// ================================================================================================
// Assertion handler
// ================================================================================================
#define ASSERT_(x, ...)                                          \
do {                                                             \
    if(x)                                                        \
        (void)0;                                                 \
    else {                                                       \
        std::cout << "Failure in"  << __FILE__ <<                \
                     " at line " << __LINE__ << std::endl;       \
        _CrtDbgBreak();                                          \
    }                                                            \
} while(0) 